Przeglądaj źródła

Fix issue #32. Add nogc and nothrow to rlgl (somehow missed that)

Steven Schveighoffer 2 lat temu
rodzic
commit
6d08440c4e
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      source/raygui.d
  2. 1 1
      source/raylib/rlgl.d

+ 1 - 1
source/raygui.d

@@ -4338,7 +4338,6 @@ private const(char)* CodepointToUTF8(int codepoint, int* byteSize) {
 
     return utf8;
 }
-}      // RAYGUI_STANDALONE
 
 // Get next codepoint in a UTF-8 encoded text, scanning until '\0' is found
 // When a invalid UTF-8 byte is encountered we exit as soon as possible and a '?'(0x3f) codepoint is returned
@@ -4378,5 +4377,6 @@ private int GetCodepointNext(const(char)* text, int* codepointSize) {
 
     return codepoint;
 }
+}      // RAYGUI_STANDALONE
 
 //! #endif      // RAYGUI_IMPLEMENTATION

+ 1 - 1
source/raylib/rlgl.d

@@ -106,7 +106,7 @@ import raylib;
 *
 **********************************************************************************************/
 
-extern (C):
+extern (C) @nogc nothrow:
 
 enum RLGL_VERSION = "4.5";