that cause error,because it is the usertype in my spacename: cx.ByteStream
so,fix it to:
tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($current_class.namespaced_class_name, $current_class.namespace_name)}",0,&tolua_err)
right code:
->tolua_isusertype(tolua_S,1,"cx.ByteStream",0,&tolua_err)
In the register.c that located in target/lua dir .
the line18 is:
-> tolua_isusertype(tolua_S,1,"${current_class.class_name}",0,&tolua_err)
then,it generate code:
->tolua_isusertype(tolua_S,1,"ByteStream",0,&tolua_err)
that cause error,because it is the usertype in my spacename: cx.ByteStream
so,fix it to:
tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($current_class.namespaced_class_name, $current_class.namespace_name)}",0,&tolua_err)
right code:
->tolua_isusertype(tolua_S,1,"cx.ByteStream",0,&tolua_err)