8000 GitHub - greedyhao/change_function_declaration
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

greedyhao/change_function_declaration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

将 c 的声明转换成空的宏定义,临时规避移植程序时的编译报错

大概效果是这样的

输入

// comments
void test();
void test1(void);
void test2(int i, char c);
void test3(int i);
void *test4(int i);
int test5(int i);
bool test6(int i);

输出

#define test(...) 
#define test1(...) 
#define test2(...) 
#define test3(...) 
#define test4(...) NULL
#define test5(...) 0
#define test6(...) false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0