Преглед на файлове

Update instructions for generating to include enum->alias

Steven Schveighoffer преди 10 месеца
родител
ревизия
b57a11ec03
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      generating.md

+ 8 - 0
generating.md

@@ -61,6 +61,14 @@ import raylib;
 Additionally, each of those modules will have an automatically generated `extern (C):` line. We need to find it and
 edit it to `extern (C) @nogc nothrow:`.
 
+Inside `source/raylib/package.d` there will be a line that looks like this:
+
+```d
+enum GetMouseRay = GetScreenToWorldRay; // Compatibility hack for previous raylib versions
+```
+
+This was translated by dstep to be an enum, but should be an alias. Replace `enum` with `alias`.
+
 This should be enough. Run `dub test` and see if it compiles.
 
 ## Generating raygui