theConfig 10.0
Loading...
Searching...
No Matches
LcConfig_Type_C_API

LcConfig PACKAGE - a collection of common data-types and definitions … More...

+ Collaboration diagram for LcConfig_Type_C_API:

Macros

#define LC_SET_T(_cls, _hook, _nat)
 

Detailed Description

LcConfig PACKAGE - a collection of common data-types and definitions …

Macro Definition Documentation

◆ LC_SET_T

#define LC_SET_T ( _cls,
_hook,
_nat )
Value:
({ \
_cls##_type ret; \
if ((_nat) == NULL) { \
ret = NULL; \
} else { \
ret = (_cls##_type)_hook (_nat); \
if (ret == NULL) { \
ret = (_cls##_type) MkObjCreate(_cls##_TT,_nat,NULL); \
} else { \
/* printV("reborn pointer class=%s value=%p\n",#_cls,ret); */ \
} \
} \
ret; \
})
#define MkObjCreate(...)

Definition at line 268 of file LibLcConfig_lc.h.

268#define LC_SET_T(_cls,_hook,_nat) ({ \
269 _cls##_type ret; \
270 if ((_nat) == NULL) { \
271 ret = NULL; \
272 } else { \
273 ret = (_cls##_type)_hook (_nat); \
274 if (ret == NULL) { \
275 ret = (_cls##_type) MkObjCreate(_cls##_TT,_nat,NULL); \
276 } else { \
277 /* printV("reborn pointer class=%s value=%p\n",#_cls,ret); */ \
278 } \
279 } \
280 ret; \
281})