mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user