Skip to content
Snippets Groups Projects
Commit 8f60d8ed authored by Martin Nilsson's avatar Martin Nilsson
Browse files

This started giving deprecation errors 11 years ago.

parent ba888d8a
No related branches found
No related tags found
No related merge requests found
/*
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
*/
#ifndef MODULE_MAGIC_H
#define MODULE_MAGIC_H
#include "module.h"
/* NB: use of module_magic is deprecated.
Please use the PIKE_MODULE_INIT/PIKE_MODULE_EXIT macros
directly in new code. */
#ifndef ALLOW_DEPRECATED_MODULE_MAGIC
/* To get rid of the following message, define ALLOW_DEPRECATED_MODULE_MAGIC.
This option is a transitional measure and may be removed at some
future time. Please update your code to use PIKE_MODULE_INIT/
PIKE_MODULE_EXIT instead. */
#error module_magic.h is deprecated. Please read the header file for details.
#endif /* ALLOW_DEPRECATED_MODULE_MAGIC */
#ifdef DYNAMIC_MODULE
#define pike_module_init(X) mYDummyFunctioN1(void); PIKE_MODULE_INIT
#define pike_module_exit(X) mYDummyFunctioN2(void); PIKE_MODULE_EXIT
#endif /* DYNAMIC_MODULE */
#endif /* MODULE_MAGIC_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment