Commits

Trammell Hudson  committed e16e52a

Use c99 inline structs for GPATH_INIT

  • Participants
  • Parent commits 123c9dd

Comments (0)

Files changed (1)

File th10/src/th10.c

 #endif
 }
 
-#define GPATH_INIT(PATH, POINTS) ({ \
-	GPathInfo __info = { sizeof(POINTS) / sizeof(*POINTS), POINTS }; \
-	gpath_init(PATH, &__info); \
-	})
+#define GPATH_INIT(PATH, POINTS) \
+	gpath_init( \
+		PATH, \
+		&(GPathInfo) { \
+			sizeof(POINTS) / sizeof(*POINTS), \
+			POINTS, \
+		} \
+	)
 
 static void
 handle_init(