aboutsummaryrefslogtreecommitdiff
path: root/src/init/alloc.h
blob: cd1228d0c052ac5cb70d48e51bc4a4fcf7d16493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef CHANGE_SRC_INIT_ALLOC_H_
#define CHANGE_SRC_INIT_ALLOC_H_

#include <cstdlib>

namespace init {

void* static_malloc(size_t size);
void* static_calloc(size_t block, size_t size);

bool from_static_buffer(void* ptr);

struct dlsymContext {
	dlsymContext();
	~dlsymContext();

	static bool is_active();
};

}

#endif  // CHANGE_SRC_INIT_ALLOC_H_