Skip to content

Commit

Permalink
/* */
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoqi committed Aug 5, 2018
1 parent 5263f43 commit 1f43b47
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions >require
Original file line number Diff line number Diff line change
Expand Up @@ -604,15 +604,15 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
t _TEMP_prelude_let_cc_throw_; \
_TEMP_prelude_let_cc_throw_; })

//if_then_else(b)({...})({...});
/*if_then_else(b)({...})({...});*/
#define if_then_else(b) ((b)? _HELPER_prelude_if_then_else_A_
#define _HELPER_prelude_if_then_else_A_(b) (b): _HELPER_prelude_if_then_else_B_
#define _HELPER_prelude_if_then_else_B_(b) (b))

#define _HELPER_prelude_function_(value) {return (value);}
#define _HELPER_prelude_ignore_(x) _HELPER_prelude_global_nothing_

//参考https://blog.csdn.net/u011787119/article/details/53815950
/*参考https://blog.csdn.net/u011787119/article/details/53815950*/
#define _HELPER_prelude_ATTR_(args) args
#define _HELPER_prelude_COUNT_PARMS_IMP_(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, NUM, ...) NUM
#define _HELPER_prelude_COUNT_PARMS_(...) _HELPER_prelude_ATTR_(_HELPER_prelude_COUNT_PARMS_IMP_(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
Expand Down Expand Up @@ -651,10 +651,10 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
# define _HELPER_prelude_define_public2(t, n) declare_public(t, n);t n
#endif

//例子
//define_private_function(int add(int x, int y))({
// x+y;
//});
/*例子
define_private_function(int add(int x, int y))({
x+y;
});*/

#undef declare_private_function
#undef define_private_function
Expand Down
12 changes: 6 additions & 6 deletions module<
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
t _TEMP_prelude_let_cc_throw_; \
_TEMP_prelude_let_cc_throw_; })

//if_then_else(b)({...})({...});
/*if_then_else(b)({...})({...});*/
#define if_then_else(b) ((b)? _HELPER_prelude_if_then_else_A_
#define _HELPER_prelude_if_then_else_A_(b) (b): _HELPER_prelude_if_then_else_B_
#define _HELPER_prelude_if_then_else_B_(b) (b))

#define _HELPER_prelude_function_(value) {return (value);}
#define _HELPER_prelude_ignore_(x) _HELPER_prelude_global_nothing_

//参考https://blog.csdn.net/u011787119/article/details/53815950
/*参考https://blog.csdn.net/u011787119/article/details/53815950*/
#define _HELPER_prelude_ATTR_(args) args
#define _HELPER_prelude_COUNT_PARMS_IMP_(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, NUM, ...) NUM
#define _HELPER_prelude_COUNT_PARMS_(...) _HELPER_prelude_ATTR_(_HELPER_prelude_COUNT_PARMS_IMP_(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
Expand Down Expand Up @@ -130,10 +130,10 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
# define _HELPER_prelude_define_public2(t, n) declare_public(t, n);t n
#endif

//例子
//define_private_function(int add(int x, int y))({
// x+y;
//});
/*例子
define_private_function(int add(int x, int y))({
x+y;
});*/

#undef declare_private_function
#undef define_private_function
Expand Down
12 changes: 6 additions & 6 deletions prelude.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
t _TEMP_prelude_let_cc_throw_; \
_TEMP_prelude_let_cc_throw_; })

//if_then_else(b)({...})({...});
/*if_then_else(b)({...})({...});*/
#define if_then_else(b) ((b)? _HELPER_prelude_if_then_else_A_
#define _HELPER_prelude_if_then_else_A_(b) (b): _HELPER_prelude_if_then_else_B_
#define _HELPER_prelude_if_then_else_B_(b) (b))

#define _HELPER_prelude_function_(value) {return (value);}
#define _HELPER_prelude_ignore_(x) _HELPER_prelude_global_nothing_

//参考https://blog.csdn.net/u011787119/article/details/53815950
/*参考https://blog.csdn.net/u011787119/article/details/53815950*/
#define _HELPER_prelude_ATTR_(args) args
#define _HELPER_prelude_COUNT_PARMS_IMP_(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, NUM, ...) NUM
#define _HELPER_prelude_COUNT_PARMS_(...) _HELPER_prelude_ATTR_(_HELPER_prelude_COUNT_PARMS_IMP_(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
Expand Down Expand Up @@ -129,10 +129,10 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
# define _HELPER_prelude_define_public2(t, n) declare_public(t, n);t n
#endif

//例子
//define_private_function(int add(int x, int y))({
// x+y;
//});
/*例子
define_private_function(int add(int x, int y))({
x+y;
});*/

#undef declare_private_function
#undef define_private_function
Expand Down
12 changes: 6 additions & 6 deletions require<
Original file line number Diff line number Diff line change
Expand Up @@ -600,15 +600,15 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
t _TEMP_prelude_let_cc_throw_; \
_TEMP_prelude_let_cc_throw_; })

//if_then_else(b)({...})({...});
/*if_then_else(b)({...})({...});*/
#define if_then_else(b) ((b)? _HELPER_prelude_if_then_else_A_
#define _HELPER_prelude_if_then_else_A_(b) (b): _HELPER_prelude_if_then_else_B_
#define _HELPER_prelude_if_then_else_B_(b) (b))

#define _HELPER_prelude_function_(value) {return (value);}
#define _HELPER_prelude_ignore_(x) _HELPER_prelude_global_nothing_

//参考https://blog.csdn.net/u011787119/article/details/53815950
/*参考https://blog.csdn.net/u011787119/article/details/53815950*/
#define _HELPER_prelude_ATTR_(args) args
#define _HELPER_prelude_COUNT_PARMS_IMP_(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, NUM, ...) NUM
#define _HELPER_prelude_COUNT_PARMS_(...) _HELPER_prelude_ATTR_(_HELPER_prelude_COUNT_PARMS_IMP_(__VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
Expand Down Expand Up @@ -647,10 +647,10 @@ _HELPER_prelude_staticDefine_inlineDefine_ void make_void(){}
# define _HELPER_prelude_define_public2(t, n) declare_public(t, n);t n
#endif

//例子
//define_private_function(int add(int x, int y))({
// x+y;
//});
/*例子
define_private_function(int add(int x, int y))({
x+y;
});*/

#undef declare_private_function
#undef define_private_function
Expand Down

0 comments on commit 1f43b47

Please sign in to comment.