9faa3d9989
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1407 bbd45198-f89e-11dd-88c7-29a3b14d5316
27 lines
475 B
C
27 lines
475 B
C
#ifndef __RTM_H__
|
|
#define __RTM_H__
|
|
|
|
#include <rtdef.h>
|
|
#include <rtthread.h>
|
|
|
|
#ifdef RT_USING_MODULE
|
|
#define RTM_EXPORT(symbol) \
|
|
const char __rtmsym_##symbol##_name[] = #symbol; \
|
|
const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \
|
|
{ \
|
|
(void *)&symbol, \
|
|
__rtmsym_##symbol##_name \
|
|
};
|
|
|
|
#else
|
|
#define RTM_EXPORT(symbol)
|
|
#endif
|
|
|
|
struct rt_module_symtab
|
|
{
|
|
void* addr;
|
|
const char* name;
|
|
};
|
|
|
|
#endif
|