Preprocessor can't distinguish between a macro that is defined with a value, and one that is simply defined. So I removed the LOAD_RESOURCES_FROM_DIR from the release build

This commit is contained in:
Corey Johnson
2012-05-16 15:08:16 -07:00
parent e20d2dd9cb
commit 1d615c3576
2 changed files with 4 additions and 5 deletions

View File

@@ -113,9 +113,9 @@
CefRefPtr<CefV8Value> atom = CefV8Value::CreateObject(NULL, NULL);
global->SetValue("atom", atom, V8_PROPERTY_ATTRIBUTE_NONE);
#define STR_VALUE(arg) #arg
#if defined(LOAD_RESOURCES_FROM_DIR)
char path[] = STR_VALUE(LOAD_RESOURCES_FROM_DIR);
#ifdef LOAD_RESOURCES_FROM_DIR
char path[] = LOAD_RESOURCES_FROM_DIR;
#else
const char *path = [[[NSBundle mainBundle] resourcePath] UTF8String];
#endif