You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the following 2 lines are placed in a .h file and passed to jnaerator, an error occurs
free( void * _Memory);
malloc( int _Size);
The output placed in _jnaerator.rawParsed.cpp only contains the following as jnaerator stops all further processing at the malloc line
free(void* _Memory);
If the following .h file is used instead it works correctly
free( void * _Memory);
malloc1( int _Size);
The output placed in _jnaerator.rawParsed.cpp is correct (as shown below)
free(void* _Memory);
malloc1(int _Size);
Looking at the jnaerator source code it is clear that there are dedicated handlers for memory allocation functions, so I am guessing that the handler for malloc has a problem.
Roger
The text was updated successfully, but these errors were encountered:
This wide-ranging bug was caused by interference with the "malloc" and "free" GCC attributes, that shouldn't be parsed outside attribute (fortunately easy to fix !).
If the following 2 lines are placed in a .h file and passed to jnaerator, an error occurs
free( void * _Memory);
malloc( int _Size);
The output placed in _jnaerator.rawParsed.cpp only contains the following as jnaerator stops all further processing at the malloc line
free(void* _Memory);
If the following .h file is used instead it works correctly
free( void * _Memory);
malloc1( int _Size);
The output placed in _jnaerator.rawParsed.cpp is correct (as shown below)
free(void* _Memory);
malloc1(int _Size);
Looking at the jnaerator source code it is clear that there are dedicated handlers for memory allocation functions, so I am guessing that the handler for malloc has a problem.
Roger
The text was updated successfully, but these errors were encountered: