src/cpp/s2js.cc
NAN_MODULE_INIT(InitAll) {
    NAN_EXPORT(target, AddBot);
    NAN_EXPORT(target, AddComputer);
    NAN_EXPORT(target, StartGame);
    NAN_EXPORT(target, GetGameStatus);
    NAN_EXPORT(target, Update);
    NAN_EXPORT(target, GetStats);
    NAN_EXPORT(target, GetUnits);
    NAN_EXPORT(target, GetUnitClasses);
	NAN_EXPORT(target, GetUnitInfo);
	NAN_EXPORT(target, GetResourceInfo);
    NAN_EXPORT(target, CommandUnit);
}
// This represents the top level of the module.
// C++ constructs that are exposed to javascript are exported here
This represents the top level of the module.
C++ constructs that are exposed to javascript are exported here
This represents the top level of the module . C ++ constructs that are exposed to javascript are exported here
NAN_MODULE_INIT(InitAll) {
    NAN_EXPORT(target, AddBot);
    NAN_EXPORT(target, AddComputer);
    NAN_EXPORT(target, StartGame);
    NAN_EXPORT(target, GetGameStatus);
    NAN_EXPORT(target, Update);
    NAN_EXPORT(target, GetStats);
    NAN_EXPORT(target, GetUnits);
    NAN_EXPORT(target, GetUnitClasses);
	NAN_EXPORT(target, GetUnitInfo);
	NAN_EXPORT(target, GetResourceInfo);
    NAN_EXPORT(target, CommandUnit);
}
NAN_MODULE_INIT ( InitAll ) { NAN_EXPORT ( target , AddBot ) ; NAN_EXPORT ( target , AddComputer ) ; NAN_EXPORT ( target , StartGame ) ; NAN_EXPORT ( target , GetGameStatus ) ; NAN_EXPORT ( target , Update ) ; NAN_EXPORT ( target , GetStats ) ; NAN_EXPORT ( target , GetUnits ) ; NAN_EXPORT ( target , GetUnitClasses ) ; NAN_EXPORT ( target , GetUnitInfo ) ; NAN_EXPORT ( target , GetResourceInfo ) ; NAN_EXPORT ( target , CommandUnit ) ; }
This represents the top level of the module.
This represents the top level of the module .