Browse Source

base.h - make C++ compatible

i just dont like #pragma once.
yes i am weird maybe... ?_
master
heck 2 years ago
parent
commit
52d9719b19
  1. 16
      src/base.h

16
src/base.h

@ -1,4 +1,6 @@
#pragma once
#ifndef ORCA_BASE_H
#define ORCA_BASE_H
#include <stdio.h>
#include <assert.h>
#include <limits.h>
@ -60,6 +62,10 @@
#define staticni ORCA_NOINLINE static
#ifdef __cplusplus
extern "C" {
#endif
//----------------------------------------------------------------------------------------
// Types
@ -90,8 +96,6 @@ enum
};
//----------------------------------------------------------------------------------------
// Utils
//----------------------------------------------------------------------------------------
@ -172,3 +176,9 @@ staticni bool read_nxn_or_n(char const *str, int *out_a, int *out_b)
return false;
}
#ifdef __cplusplus
};
#endif
#endif //ORCA_BASE_H

Loading…
Cancel
Save