mirror of https://github.com/mode777/rayjs.git
binding generator
This commit is contained in:
parent
36d9b17c44
commit
8b08b72807
|
@ -17,8 +17,12 @@ async function main(){
|
||||||
class FunctionList {
|
class FunctionList {
|
||||||
definitions = []
|
definitions = []
|
||||||
|
|
||||||
addFunctionDef(name, args, funcname){
|
addFunctionDef(name, args, cname){
|
||||||
this.definitions.push(``)
|
this.definitions.push(`JS_FUNC_DEF("${name}", ${args}, ${cname})`)
|
||||||
|
}
|
||||||
|
|
||||||
|
addIntConst(name, val){
|
||||||
|
this.definitions.push(`JS_PROP_INT32_DEF("${name}", ${val})`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue