I want to pass three vars to inline-c code, the three vars are defined within 'Type'
I want to do something like this
Edit: I forgot to add this part of code to call the inline-c sub
Thanks
I want to do something like this
B4X:
Type mChar(Page As Byte, Col As Byte, Data as Byte)
B4X:
mChar.Page = 1
mChar.COL = 8
mChar.Data = 0xF1
RunNative("drawchar",mChar)
B4X:
void drawchar(B4R::Object* o) {
page = o.Page
col = o.Col
data = o.Data
do something...
...
}
Last edited: