Hi,
I am trying to get variadic functions working in my kernel. This constitutes an implementation of stdarg.h, yes? Am I going about that the right way?
Thanks,
Implementing Variadic Functions
-
- Member
- Posts: 77
- Joined: Tue Nov 20, 2012 4:45 pm
- Contact:
Re: Implementing Variadic Functions
If you use gcc cross compiler, you may just #include <stdarg.h>, the compiler handle the dirty work for you.
You should not implement va_ macro/function yourself, it is just not necessary and not portable.
By the way, it is generally not a good idea to use variadic functions in kernel, except for debug purpose (aka. kprintf)
You should not implement va_ macro/function yourself, it is just not necessary and not portable.
By the way, it is generally not a good idea to use variadic functions in kernel, except for debug purpose (aka. kprintf)