summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-04-21 16:59:06 +0000
committerqiuyiuestc <[email protected]>2010-04-21 16:59:06 +0000
commit38c432620f3c1df2e88dc892dbd24ef19a198bd2 (patch)
treefa99ba53b1b63c04aaba7d701e391bcddf88ae6b /src/object.c
parent146d88b0507c173919e1e8f8dee9f5c9157731fc (diff)
module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@663 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/object.c b/src/object.c
index 3843326b61..e9d45f3bbc 100644
--- a/src/object.c
+++ b/src/object.c
@@ -180,8 +180,14 @@ void rt_object_init(struct rt_object* object, enum rt_object_class_type type, co
register rt_base_t temp;
struct rt_object_information* information;
+#ifdef RT_USING_MODULE
+ /* get module object information */
+ information = (rt_current_module != RT_NULL) ?
+ &rt_current_module->module_object[type] : &rt_object_container[type];
+#else
/* get object information */
information = &rt_object_container[type];
+#endif
/* init object's parameters */