mirror of https://github.com/axmolengine/axmol.git
issue #2826: Bug fixes for win32.
This commit is contained in:
parent
6f978c5cbd
commit
f478e2d2a5
|
@ -79,6 +79,14 @@ static std::map<int,int> ports_sockets;
|
||||||
// name ~> globals
|
// name ~> globals
|
||||||
static std::map<std::string, js::RootedObject*> globals;
|
static std::map<std::string, js::RootedObject*> globals;
|
||||||
|
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||||
|
namespace js {
|
||||||
|
bool IsInRequest(JSContext* cx)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void ReportException(JSContext *cx)
|
static void ReportException(JSContext *cx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include "jsprototypes.h"
|
#include "jsprototypes.h"
|
||||||
#include "jstypes.h"
|
#include "jstypes.h"
|
||||||
|
|
||||||
#if defined(JSGC_ROOT_ANALYSIS) || defined(JSGC_USE_EXACT_ROOTING) || defined(DEBUG)
|
#if defined(JSGC_ROOT_ANALYSIS) || defined(JSGC_USE_EXACT_ROOTING) || (defined(DEBUG) && !defined(_WIN32))
|
||||||
# define JSGC_TRACK_EXACT_ROOTS
|
# define JSGC_TRACK_EXACT_ROOTS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue