From: Justin Seyster Date: Wed, 20 Oct 2010 18:48:16 +0000 (-0400) Subject: Clarify documentation for AOP_INT_CST. X-Git-Tag: release-v1.0~34 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=b1fc29d78e9f6c67dd4aed9a355fde42a898cc1b;p=interaspect.git Clarify documentation for AOP_INT_CST. --- 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