Exemple #1
0
 public static void IncrementInvertPointerFieldsByRef(
     [DNNE.C99Type("struct ptr_fields*")] PointerFields *result)
 {
     *(result->i) += 1;
     *(result->b)  = !*(result->b);
     *(result->c) += (char)1;
 }
Exemple #2
0
 public static void IncrementInvertPointerFieldsRefReturn(
     [DNNE.C99Type("struct ptr_fields")] PointerFields input,
     [DNNE.C99Type("struct ptr_fields*")] PointerFields *result)
 {
     *(result->i) = *(input.i) + 1;
     *(result->b) = !(*input.b);
     *(result->c) = (char)(*(input.c) + 1);
 }