userland: scope every header identifier with lkmc_

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-21 00:00:01 +00:00
parent 6fe9e5bae7
commit 72200dee4e
78 changed files with 369 additions and 377 deletions

View File

@@ -15,17 +15,17 @@
;
/* Assert that the given branch instruction is taken. */
#define ASSERT(branch_if_pass) \
#define LKMC_ASSERT(branch_if_pass) \
branch_if_pass 1f; \
FAIL; \
LKMC_FAIL; \
1: \
;
#ifndef ASSERT_EQ_REG
#ifndef LKMC_ASSERT_EQ_REG
/* Assert that a register equals another register. */
#define ASSERT_EQ_REG(reg1, reg2) \
#define LKMC_ASSERT_EQ_REG(reg1, reg2) \
cmp reg1, reg2; \
ASSERT(beq); \
LKMC_ASSERT(beq); \
;
#endif