Menu

[r1226]: / trunk / LWJGL / src / native / macosx / tools.cpp  Maximize  Restore  History

Download this file

17 lines (14 with data), 448 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <CoreServices/CoreServices.h>
#include "tools.h"
#include "common_tools.h"
MPCriticalRegionID critical_region;
bool getDictLong(CFDictionaryRef dict, CFStringRef key, long *key_value) {
CFTypeRef val = CFDictionaryGetValue(dict, key);
if (val != NULL) {
CFTypeID type = CFGetTypeID(val);
if (type == CFNumberGetTypeID())
if (CFNumberGetValue((CFNumberRef)val, kCFNumberLongType, key_value))
return true;
}
return false;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.