Anyway, If I try implement this during execution, and not at the preprocessor, would it be possible? Any ideas?
I would need something that makes posbile to use it exactly as *(char*)&(a).
I mean...
Type: Posts; User: brunogon
Anyway, If I try implement this during execution, and not at the preprocessor, would it be possible? Any ideas?
I would need something that makes posbile to use it exactly as *(char*)&(a).
I mean...
Thanks everybody,
Unfortunately I can´t use C++ code, I was trying to do some decent cast validation, but I think it is not possible.
Tks again for your help
So far, I think It is getting the sizeof correctly, the problem is if has any way to define my
#define COMPILE_TIME_ASSERT(test, a) with a preprocessor #if.
As the #if gives me an error, I also...
Hi,
I´m trying to create a routine to validate my casting. What I want to do is if my structure size is right put some code, if the code should report an error.
Does anyone knows how can I do...