diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-01-02 11:53:21 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-01-02 11:53:21 +0100 |
commit | 56caeb540795fb92f3289bbc4744e94da0c20654 (patch) | |
tree | b8e0e2dffd87835dabe377aab53e5c1d89810233 /common/dl.h | |
parent | 31cf3ac5ac7054890810190d6f526ec1eb38c64d (diff) | |
download | uwu-lang-56caeb540795fb92f3289bbc4744e94da0c20654.tar.xz |
Turn common back into a normal directory (instead of a submodule)
Diffstat (limited to 'common/dl.h')
-rw-r--r-- | common/dl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/dl.h b/common/dl.h new file mode 100644 index 0000000..04a2cd7 --- /dev/null +++ b/common/dl.h @@ -0,0 +1,14 @@ +#ifndef _UWU_COMMON_DL_H_ +#define _UWU_COMMON_DL_H_ + +#include <dlfcn.h> +#include "err.h" + +inline static void check_dlerror() +{ + char *err = dlerror(); + if (err) + error("library error: %s\n", err); +} + +#endif |