OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_close_file.cpp
Go to the documentation of this file.
1//Copyright> OpenRadioss
2//Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3//Copyright>
4//Copyright> This program is free software: you can redistribute it and/or modify
5//Copyright> it under the terms of the GNU Affero General Public License as published by
6//Copyright> the Free Software Foundation, either version 3 of the License, or
7//Copyright> (at your option) any later version.
8//Copyright>
9//Copyright> This program is distributed in the hope that it will be useful,
10//Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11//Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12//Copyright> GNU Affero General Public License for more details.
13//Copyright>
14//Copyright> You should have received a copy of the GNU Affero General Public License
15//Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16//Copyright>
17//Copyright>
18//Copyright> Commercial Alternative: Altair Radioss Software
19//Copyright>
20//Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21//Copyright> software under a commercial license. Contact Altair to discuss further if the
22//Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23//
24#include <stdio.h>
25#include <string.h>
26#include <stdlib.h>
27#include <math.h>
28#include <fcntl.h>
29
30#ifdef _WIN32
31/* Windows includes */
32#include <windows.h>
33#include <process.h>
34#include <io.h>
35#include <sys\types.h>
36#include <sys/stat.h>
37
38
39#elif 1
40
41/* Linux includes */
42#include <sys/resource.h>
43#include <sys/types.h>
44#include <time.h>
45#include <sys/stat.h>
46#include <unistd.h>
47#include <dlfcn.h>
48#define _FCALL
49#include <math.h>
50#include <stdbool.h>
51
52#endif
53
54#include "h3dpublic_defs.h"
55#include "h3dpublic_export.h"
56
57#define _FCALL
58
59#include "h3d_values.h"
60
61extern "C"
62/*=================================================================*/
63{
64/*=================================================================*/
65/* CLOSE_H3D_FILE */
66/*=================================================================*/
68{
69 try {
70 //
71 // close h3d file
72 //
74 if( !rc ) throw rc;
75 } // end of try
76
77 catch(...) {
79 }
80}
81
84
87
90
91
92}
93
void _FCALL C_H3D_CLOSE_FILE()
void c_h3d_close_file_()
void c_h3d_close_file()
void c_h3d_close_file__()
H3DFileInfo * h3d_file
bool rc
bool Hyper3DExportClose(H3DFileInfo *h3d_file)
Definition h3d_dl.c:945
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
Definition h3d_dl.c:939
#define _FCALL