summaryrefslogtreecommitdiffhomepage
path: root/src/tier0stub.c
blob: a043bea0ee59b1aa53577e20d530beff79bf225c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This file is dedicated to the public domain. */

// Produce a dummy tier0.dll/libtier0.so to allow linking without dlsym faff.
// Windows needs additional care because it's dumb.

#ifdef _WIN32
#define F(name) __declspec(dllexport) void name(void) {}
#define V(name) __declspec(dllexport) void *name;
#else
#define F(name) void *name;
#define V(name) void *name;
#endif

F(Msg);
F(Warning);
// F(Error); // unused in plugin
V(g_pMemAlloc);

// vi: sw=4 ts=4 noet tw=80 cc=80