mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add type and name to banch mark arg
This commit is contained in:
parent
cc25084ea0
commit
c0a3860321
@ -86,6 +86,8 @@ int32_t main()
|
||||
{
|
||||
Arg *arg = New_arg(NULL);
|
||||
arg = arg_setInt(arg, 0);
|
||||
arg = arg_setType(arg, "int");
|
||||
arg = arg_setName(arg, "testInt1");
|
||||
checker_printMemUsage("int arg");
|
||||
arg_deinit(arg);
|
||||
checker_assertMemFree();
|
||||
@ -93,6 +95,8 @@ int32_t main()
|
||||
{
|
||||
Arg *arg = New_arg(NULL);
|
||||
arg = arg_setFloat(arg, 0);
|
||||
arg = arg_setType(arg, "float");
|
||||
arg = arg_setName(arg, "testFloat1");
|
||||
checker_printMemUsage("float arg");
|
||||
arg_deinit(arg);
|
||||
checker_assertMemFree();
|
||||
@ -100,6 +104,8 @@ int32_t main()
|
||||
{
|
||||
Arg *arg = New_arg(NULL);
|
||||
arg = arg_setStr(arg, "test string");
|
||||
arg = arg_setType(arg, "str");
|
||||
arg = arg_setName(arg, "testStr");
|
||||
checker_printMemUsage("str arg");
|
||||
arg_deinit(arg);
|
||||
checker_assertMemFree();
|
||||
|
Loading…
x
Reference in New Issue
Block a user