Jump to content

run function from .dll and .so file


Recommended Posts

Yes, i know that i can install module for server, but its problematic and not all script need new functions. Cool idea would be option to make simple c++ file, compile to .so or .dll and load to only 1 script.Somethink like:

<script src="script.so"/>

script.so have few function like

int test(int i){
	return i++;
}
bool test_two(){
 	return false 
}
script=loadLib("script.so")
script:call("functionname",arguments)
script:functions() -- return all functions
script.meta -- return table of information about file

and i can call script:call("test",1) and return 2

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...