浏览代码

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
 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:`.
 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.
 This should be enough. Run `dub test` and see if it compiles.
 
 
 ## Generating raygui
 ## Generating raygui