aboutsummaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'example.c')
-rw-r--r--example.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/example.c b/example.c
index 4a7b3a7..48d02cc 100644
--- a/example.c
+++ b/example.c
@@ -21,7 +21,17 @@ static void crypted_fn2(void)
{
CRYPT_PROLOGUE(crypted_fn2);
printf("Another decrypted fn..\n");
+ printf(
+#ifdef _DEBUG
+ "CRYPT_PROLOGUE crpyt_func returned: %s\n",
+ crypt_strs[ CRYPT_RETVAL() ]
+#else
+ "CRYPT_PROLOGUE crpyt_func returned: %d\n",
+ CRYPT_RETVAL()
+#endif
+ );
CRYPT_EPILOGUE(crypted_fn2);
+ printf("This part stays unencrypted all the time.\n");
}
CRYPT_FNDEF(crypted_fn3, void *arg0, int arg1, const char *arg2)