From b1fc29d78e9f6c67dd4aed9a355fde42a898cc1b Mon Sep 17 00:00:00 2001 From: Justin Seyster Date: Wed, 20 Oct 2010 14:48:16 -0400 Subject: [PATCH] Clarify documentation for AOP_INT_CST. --- src/aop.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/aop.h b/src/aop.h index fb850f1..ced0d87 100644 --- a/src/aop.h +++ b/src/aop.h @@ -231,8 +231,11 @@ enum aop_argkind { /** * \brief Mark an advice argument as an integer constant (int). * - * Use this macro when passing an integer constant (int) - * argument to aop_insert_advice(). + * Use this macro when passing an integer constant (int) argument to + * aop_insert_advice(). Make sure the argument actually has type int, + * and not a different-sized type (like long on a 64-bit system). The + * preprocessor cannot type check this input, and an input with the + * wrong type can cause a memory error. */ #define AOP_INT_CST(VAL) ATA_INT_CST, VAL -- 2.43.0