Importing C files

Monkey Forums/Monkey Programming/Importing C files

Zeke(Posted 2011) [#1]
give me a glue.. is it possible to import lua to monkey? how??
give us "tutorial" section Mark??!!!!
LuaJit2 is my target...

[EDIT]

^^ and i mean this TUTORIAL like in blitbasic website is .. MUST..


Canardian(Posted 2011) [#2]
You need to write a wrapper in Monkey which exposes the Lua commands from the C source code of the Lua C API. It's quite easy, when you first try the pure C version of the Lua C API, and then wrap a few commands for testing into Monkey. The same idea works for all C/C++ libraries (source code or DLL), and it's also the same way how 3rd party libraries were wrapped in BlitzMax.


Zeke(Posted 2011) [#3]
ok thanks. i just got monkey and im just learning it. but i still want to make some code. all what i want is to to do LuaJIT and RakMet to monkey modules. :D so if you have any skills and want that also please make my day and make those modules. heh.


Virtech(Posted 2011) [#4]
In other words: Just gimme the modulez! xD