New issue
 Projects > cocos2d-x > Issues > Bug #6004

A BUG about Bindings-generator

Bug #6004 [New]
beckham996@qq.com 2014-11-24 10:11

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)

Atom PDF

Status:New
Start date:2014-11-24
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-