]> git.lizzy.rs Git - uwu-lang.git/blob - common/dl.h
Turn common back into a normal directory (instead of a submodule)
[uwu-lang.git] / common / dl.h
1 #ifndef _UWU_COMMON_DL_H_
2 #define _UWU_COMMON_DL_H_
3
4 #include <dlfcn.h>
5 #include "err.h"
6
7 inline static void check_dlerror()
8 {
9         char *err = dlerror();
10         if (err)
11                 error("library error: %s\n", err);
12 }
13
14 #endif