Skip to content

Commit

Permalink
Fix elli and ellib in wren
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceisjustplaying committed Jul 8, 2024
1 parent 52d6edb commit ad0bc0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/wren.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ class TIC {\n\
foreign static line(x0, y0, x1, y1, color)\n\
foreign static circ(x, y, radius, color)\n\
foreign static circb(x, y, radius, color)\n\
foreign static elli(x, y, a, b, color)\n\
foreign static ellib(x, y, a, b, color)\n\
foreign static rect(x, y, w, h, color)\n\
foreign static rectb(x, y, w, h, color)\n\
foreign static tri(x1, y1, x2, y2, x3, y3, color)\n\
Expand Down Expand Up @@ -1542,6 +1544,8 @@ static WrenForeignMethodFn foreignTicMethods(const char* signature)
if (strcmp(signature, "static TIC.line(_,_,_,_,_)" ) == 0) return wren_line;
if (strcmp(signature, "static TIC.circ(_,_,_,_)" ) == 0) return wren_circ;
if (strcmp(signature, "static TIC.circb(_,_,_,_)" ) == 0) return wren_circb;
if (strcmp(signature, "static TIC.elli(_,_,_,_,_)" ) == 0) return wren_elli;
if (strcmp(signature, "static TIC.ellib(_,_,_,_,_)" ) == 0) return wren_ellib;
if (strcmp(signature, "static TIC.rect(_,_,_,_,_)" ) == 0) return wren_rect;
if (strcmp(signature, "static TIC.rectb(_,_,_,_,_)" ) == 0) return wren_rectb;
if (strcmp(signature, "static TIC.tri(_,_,_,_,_,_,_)" ) == 0) return wren_tri;
Expand Down

0 comments on commit ad0bc0c

Please sign in to comment.