]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_eal.h
use macro to declare constructor functions
[dpdk.git] / lib / librte_eal / common / include / rte_eal.h
index cc2636ca36b2fb538a5e3d83a51c188ec1e93447..3a093d17e917f4881a43a63490066f3ac5584a62 100644 (file)
@@ -336,29 +336,6 @@ enum rte_iova_mode rte_eal_iova_mode(void);
 const char *
 rte_eal_mbuf_default_mempool_ops(void);
 
-/**
- * Run function before main() with low priority.
- *
- * The constructor will be run after prioritized constructors.
- *
- * @param func
- *   Constructor function.
- */
-#define RTE_INIT(func) \
-static void __attribute__((constructor, used)) func(void)
-
-/**
- * Run function before main() with high priority.
- *
- * @param func
- *   Constructor function.
- * @param prio
- *   Priority number must be above 100.
- *   Lowest number is the first to run.
- */
-#define RTE_INIT_PRIO(func, prio) \
-static void __attribute__((constructor(prio), used)) func(void)
-
 #ifdef __cplusplus
 }
 #endif