diff options
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2004-09-26 13:10:40 +0000 |
---|---|---|
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2004-09-26 13:10:40 +0000 |
commit | 6678cb11c1990e5f816a5e0230d18ce9f72804fa (patch) | |
tree | 3ca594c26afc87cfb43b7bbd54b7bfc6e5ee128c /skeletons/constraints.h | |
parent | b21cfd41d061a1749c3792081d9e53e3295a999c (diff) |
clean-up; removed unnecessary field from type descriptor
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@400 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/constraints.h')
-rw-r--r-- | skeletons/constraints.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/skeletons/constraints.h b/skeletons/constraints.h index dfc0759f..fe693aee 100644 --- a/skeletons/constraints.h +++ b/skeletons/constraints.h @@ -45,17 +45,10 @@ asn_constr_check_f asn_generic_unknown_constraint; /* Not fully supported */ /* * Invoke the callback with a complete error message. */ -#ifdef __GNUC__ -#define _ASN_ERRLOG(app_errlog, app_key, fmt, args...) do { \ - if(app_errlog) \ - _asn_i_log_error(app_errlog, \ - app_key, fmt, ##args); \ -} while(0); -#else /* Preprocessor does not support variable args macros */ +/* Preprocessor may not support variable args macros, so act strangely */ #define _ASN_ERRLOG if(app_errlog) _asn_i_log_error -#endif -extern void _asn_i_log_error(asn_app_consume_bytes_f *, void *key, +void _asn_i_log_error(asn_app_consume_bytes_f *, void *key, const char *fmt, ...) __attribute__ ((format(printf, 3, 4))); #endif /* _ASN1_CONSTRAINTS_VALIDATOR_H_ */ |