0.95.0-final
Finite Element Embedded Library and Language in C++
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Macros
crbwrapper.hpp File Reference
Go to the source code of this file.
Macros
#define
CRB_FUNC_EXEC_BODY_IN_TEMPDIR
(classname, dirname)
Detailed Description
Author
Christophe Prud'homme
chris
.nosp@m.
toph
.nosp@m.
e.pru
.nosp@m.
dhom
.nosp@m.
me@fe
.nosp@m.
elpp
.nosp@m.
.org
Date
2010-03-19
Macro Definition Documentation
#define CRB_FUNC_EXEC_BODY_IN_TEMPDIR
(
classname,
dirname
)
Value:
{ \
char* currentWorkingDirectory = getCurrentWorkingDirectory (0) ; \
char* temporaryDirectory=createTemporaryDirectory(#dirname,p_exchangedData,0); \
\
int rc = 0; \
try \
{ \
CAST(classname*,p_state)->run( INPOINT_ARRAY, INPOINT_SIZE, OUTPOINT_ARRAY, OUTPOINT_SIZE ); \
} \
catch( ... ) \
{ \
rc = 1; \
} \
if (rc) { \
PRINT(
"Error in class "
#classname ); \
return WRAPPER_EXECUTION_ERROR; \
} \
deleteTemporaryDirectory ( temporaryDirectory , rc, 0 ) ; \
free ( currentWorkingDirectory ) ; \
}
Generated on Fri Oct 25 2013 14:24:27 for Feel++ by
1.8.4