[Asterisk-code-review] Produce friendly error when AST MODULE SELF SYM is not defined. (asterisk[master])
Corey Farrell
asteriskteam at digium.com
Mon Aug 8 19:18:08 CDT 2016
Corey Farrell has uploaded a new change for review.
https://gerrit.asterisk.org/3434
Change subject: Produce friendly error when AST_MODULE_SELF_SYM is not defined.
......................................................................
Produce friendly error when AST_MODULE_SELF_SYM is not defined.
Modules must define AST_MODULE_SELF_SYM to be used as the name of a
generated function. This produces a friendly error when it's not
defined.
ASTERISK-26278 #close
Change-Id: Ib9d35a08104529c516d636771365e02c6e77a45b
---
M include/asterisk.h
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/34/3434/1
diff --git a/include/asterisk.h b/include/asterisk.h
index e509fbc..93c7cfb 100644
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -286,6 +286,10 @@
/* Internal/forward declaration, AST_MODULE_SELF should be used instead. */
struct ast_module *AST_MODULE_SELF_SYM(void);
+#else
+
+#error "Externally compiled modules must declare AST_MODULE_SELF_SYM."
+
#endif
/*!
--
To view, visit https://gerrit.asterisk.org/3434
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9d35a08104529c516d636771365e02c6e77a45b
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
More information about the asterisk-code-review
mailing list