Browse Source

style adjustment

master
Odilitime 5 years ago
parent
commit
f835686ef1
  1. 8
      src/pnm.h

8
src/pnm.h

@ -9,10 +9,12 @@ struct RGBAPNMObject { @@ -9,10 +9,12 @@ struct RGBAPNMObject {
// fast allocation!
static void* operator new(size_t n){
if (void *mem = tlsf_malloc(n)){
return mem;
} throw std::bad_alloc {};
void *mem = tlsf_malloc(n);
if (mem){
return mem;
}
throw std::bad_alloc {};
}
static void operator delete(void *p){
tlsf_free(p);
}

Loading…
Cancel
Save