You can pass a parameter to native C functions like explained her: https://www.b4x.com/android/forum/threads/inline-c-c.65714/
The code above uses o->toULong(). From other posts I have seen toLong, ToPointer and WrapNumber.
Is there somewhere a list of these helper methods available for the B4R::Object*?
B4X:
#if C
#include <Narcoleptic.h>
void Delay (B4R::Object* o) {
Narcoleptic.delay(o->toULong());
}
#End if
The code above uses o->toULong(). From other posts I have seen toLong, ToPointer and WrapNumber.
Is there somewhere a list of these helper methods available for the B4R::Object*?