Initial commit

This commit is contained in:
stubbfel
2018-01-26 02:04:31 +01:00
commit 2409815a82
7 changed files with 451 additions and 0 deletions

55
src/kunity_t.h Normal file
View File

@@ -0,0 +1,55 @@
#ifndef KUNITY_T_H
#define KUNITY_T_H
//{ global include region
#include <linux/types.h>
#ifndef KUNITY_TEST_RUNNER_APP
#include <linux/export.h>
#endif
//}
//{ local include region
//}
//{ define region
#ifndef KUNITY_LINE_SIZE
#define KUNITY_LINE_SIZE 1024
#endif
#ifndef KUNITY_TEST
#define KUNITY_TEST(function_name) \
extern void function_name (void); \
EXPORT_SYMBOL(function_name); \
void function_name()
#endif
//}
//{ enum region
//}
//{ typedef region
//}
//{ struct region
#pragma pack(push, 1)
typedef struct string_builder_sTag
{
size_t write_postion;
char buffer[KUNITY_LINE_SIZE];
} string_builder_s, ptr_string_builder_s;
#pragma pack(pop)
//}
#endif // KUNITY_T_H