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
This commit is contained in:
Corey Farrell
2016-08-08 20:14:20 -04:00
parent 9042ad40f2
commit 827457dca0
3 changed files with 6 additions and 2 deletions

View File

@@ -286,6 +286,10 @@ struct ast_module;
/* 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
/*!