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
I'd like to use this library in my C++ project but due to some conversions that are only valid in C it won't compile:
ext/librg/librg.h|19756 col 20| error: cannot initialize a variable of type 'librg_world_t *' with an rvalue of type 'void *'
|| librg_world_t *wld = LIBRG_MEM_ALLOC(sizeof(librg_world_t));
|| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ext/librg/librg.h|19918 col 45| error: cannot initialize return object of type 'librg_event_type' with an rvalue of type 'int'
|| LIBRG_ASSERT(event); if (!event) return LIBRG_EVENT_INVALID;
|| ^~~~~~~~~~~~~~~~~~~
ext/librg/librg.h|2177 col 41| note: expanded from macro 'LIBRG_EVENT_INVALID'
|| #define LIBRG_EVENT_INVALID (-0x0006)
|| ^~~~~~~~~
ext/librg/librg.h|19921 col 12| error: cannot initialize return object of type 'librg_event_type' with an lvalue of type 'uint8_t' (aka 'unsigned char')
|| return e->type;
|| ^~~~~~~
ext/librg/librg.h|20656 col 14| error: cannot initialize a variable of type 'int64_t *' (aka 'long *') with an rvalue of type 'void *'
|| int64_t *results = LIBRG_MEM_ALLOC(LIBRG_WORLDWRITE_MAXQUERY * sizeof(int64_t));
|| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|| 4 errors generated.
The text was updated successfully, but these errors were encountered:
I'd like to use this library in my C++ project but due to some conversions that are only valid in C it won't compile:
The text was updated successfully, but these errors were encountered: