mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 01:07:14 +00:00
Added CStr and some other things to precompiled.h, to reduce build times.
Altered CStr/UniDoubler's macros, to avoid polluting/conflicting/etc. Fixed headers in non-PCH builds. Used the _d version of vorbisfile*.lib in Debug builds. This was SVN commit r2366.
This commit is contained in:
@@ -572,7 +572,7 @@ JSBool JSI_IGUIObject::toString(JSContext* cx, JSObject* obj, uintN UNUSEDPARAM(
|
||||
IGUIObject* e = (IGUIObject*)JS_GetPrivate( cx, obj );
|
||||
|
||||
char buffer[256];
|
||||
snprintf(buffer, 256, "[GUIObject: %s]", (const TCHAR*)e->GetName());
|
||||
snprintf(buffer, 256, "[GUIObject: %s]", e->GetName().c_str());
|
||||
buffer[255] = 0;
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, buffer));
|
||||
return JS_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user