B4R Tutorial Inline C / C++

derez

Expert
Licensed User
Longtime User
Erel (or someone else ?)
Although I have managed to write some inline C functions in the past, I still find it hard (as I do not control the language).
Can you please write a tutorial showing how to write the inline part ? (with/without parameters, how the b4r parameters should look like etc.)
Maybe just put several examples of all kinds of functions.
I'm sure it will help many users.
Thanks.
 

Peter Simpson

Expert
Licensed User
Longtime User
You can add any code you like with the inline C feature. For full libraries it is simpler to create a wrapper with the standard h and c files.

Hmm it's simpler to wrap if you can already code in C/C++. I've tried it twice by following your in depth 'B4R Library Wrapping Hints' file, man is it a complete nightmare lol

When I get more proficient in C/C++ I'll give it another go, but there's not enough time in the day for me...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…