mirror of
https://github.com/encounter/wibo.git
synced 2026-03-30 11:42:31 -07:00
6de4e9a163
* 3 funcs needed for some mwcc compilers * some PR feedback * lots more via pair programming with Simon * cleanup, add test dir as an include dir for tests * bugfix
19 lines
296 B
C++
19 lines
296 B
C++
#include <stdlib.h>
|
|
|
|
namespace handles {
|
|
enum Type {
|
|
TYPE_UNUSED,
|
|
TYPE_FILE,
|
|
TYPE_MAPPED,
|
|
};
|
|
|
|
struct Data {
|
|
Type type = TYPE_UNUSED;
|
|
void *ptr;
|
|
size_t size;
|
|
};
|
|
|
|
Data dataFromHandle(void *handle, bool pop);
|
|
void *allocDataHandle(Data data);
|
|
}
|