@@ -30,40 +30,42 @@ SCRIPT_EXPORT(account_manager, (), {
3030 .def (" stop_searching_email" , &account_manager::stop_searching_email)];
3131});
3232
33- #ifndef LINUX // FIXME!!!
3433SCRIPT_EXPORT (suggest_nicks_cb, (), {
35- module (luaState)[class_<gamespy_gp::suggest_nicks_cb>(" suggest_nicks_cb" )
34+ using namespace gamespy_gp ;
35+ module (luaState)[class_<suggest_nicks_cb>(" suggest_nicks_cb" )
3636 .def (constructor<>())
37- .def (constructor<gamespy_gp:: suggest_nicks_cb::lua_object_type,
38- gamespy_gp:: suggest_nicks_cb::lua_function_type>())
39- .def (" bind" , &gamespy_gp:: suggest_nicks_cb::bind)
40- .def (" clear" , &gamespy_gp:: suggest_nicks_cb::clear)];
37+ .def (constructor<suggest_nicks_cb::lua_object_type,
38+ suggest_nicks_cb::lua_function_type>())
39+ .def (" bind" , (suggest_nicks_cb::lua_bind_type)(& suggest_nicks_cb::bind) )
40+ .def (" clear" , &suggest_nicks_cb::clear)];
4141});
4242
4343SCRIPT_EXPORT (account_operation_cb, (), {
44- module (luaState)[class_<gamespy_gp::account_operation_cb>(" account_operation_cb" )
44+ using namespace gamespy_gp ;
45+ module (luaState)[class_<account_operation_cb>(" account_operation_cb" )
4546 .def (constructor<>())
46- .def (constructor<gamespy_gp:: account_operation_cb::lua_object_type,
47- gamespy_gp:: account_operation_cb::lua_function_type>())
48- .def (" bind" , &gamespy_gp:: account_operation_cb::bind)
49- .def (" clear" , &gamespy_gp:: account_operation_cb::clear)];
47+ .def (constructor<account_operation_cb::lua_object_type,
48+ account_operation_cb::lua_function_type>())
49+ .def (" bind" , (account_operation_cb::lua_bind_type)(& account_operation_cb::bind) )
50+ .def (" clear" , &account_operation_cb::clear)];
5051});
5152
5253SCRIPT_EXPORT (account_profiles_cb, (), {
53- module (luaState)[class_<gamespy_gp::account_profiles_cb>(" account_profiles_cb" )
54+ using namespace gamespy_gp ;
55+ module (luaState)[class_<account_profiles_cb>(" account_profiles_cb" )
5456 .def (constructor<>())
55- .def (constructor<gamespy_gp:: account_profiles_cb::lua_object_type,
56- gamespy_gp:: account_profiles_cb::lua_function_type>())
57- .def (" bind" , &gamespy_gp:: account_profiles_cb::bind)
58- .def (" clear" , &gamespy_gp:: account_profiles_cb::clear)];
57+ .def (constructor<account_profiles_cb::lua_object_type,
58+ account_profiles_cb::lua_function_type>())
59+ .def (" bind" , (account_profiles_cb::lua_bind_type)(& account_profiles_cb::bind) )
60+ .def (" clear" , &account_profiles_cb::clear)];
5961});
6062
6163SCRIPT_EXPORT (found_email_cb, (), {
62- module (luaState)[class_<gamespy_gp::found_email_cb>(" found_email_cb" )
64+ using namespace gamespy_gp ;
65+ module (luaState)[class_<found_email_cb>(" found_email_cb" )
6366 .def (constructor<>())
64- .def (constructor<gamespy_gp:: found_email_cb::lua_object_type,
65- gamespy_gp:: found_email_cb::lua_function_type>())
66- .def (" bind" , &gamespy_gp:: found_email_cb::bind)
67- .def (" clear" , &gamespy_gp:: found_email_cb::clear)];
67+ .def (constructor<found_email_cb::lua_object_type,
68+ found_email_cb::lua_function_type>())
69+ .def (" bind" , (found_email_cb::lua_bind_type)(& found_email_cb::bind) )
70+ .def (" clear" , &found_email_cb::clear)];
6871});
69- #endif
0 commit comments