Skip to content

Commit 20616c4

Browse files
SimonNSiegeLord
authored andcommitted
Fix #41: al_get_pixel is nothrow @nogc
All generated functions from this mixin should be nothrow @nogc. Issue #41 suggested that al_get_pixel get these annotations, but al_get_pixel is not the only function that needs them.
1 parent df162b5 commit 20616c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allegro5/internal/da5.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module allegro5.internal.da5;
33
char[] ColorWrapper(in char[] prefix, in char[] func, in char[] arg_decls, in char[] arg_names)
44
{
55
return
6-
`ALLEGRO_COLOR ` ~ func ~ `(` ~ arg_decls ~ `)
6+
`nothrow @nogc ALLEGRO_COLOR ` ~ func ~ `(` ~ arg_decls ~ `)
77
{
88
auto ret = ` ~ prefix ~ func ~ `(` ~ arg_names ~ `);
99
version(ALLEGRO_SUB)

0 commit comments

Comments
 (0)