We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a range of special characters that the compiler just does not error on and exits when parsing #load()
#load()
Odin: dev-2024-05-nightly:f8581537e OS: Windows 10 Pro for Workstations (000000a1) (version: 22H2), build 19045.4239 CPU: AMD Ryzen 9 7900X3D 12-Core Processor RAM: 31965 MiB Backend: LLVM 17.0.1
package main import "base:runtime" import "core:fmt" import "core:log" import "core:slice" import "core:strings" import "vendor:glfw" import vk "vendor:vulkan" SHADER_VERT :: #load("shaders/vert.spv") SHADER_FRAG :: #load("shaders/frag,spv") // Accidentally entered a comma
The compiler should have returned
main.odin(22:16) Error: Failed to `#load` file: <src dir>/shaders/frag,spv; file cannot be found SHADER_FRAG :: #load("shaders/frag,spv") ^
Exits, returns nothing.
# $ % ^ * ( ) = ; : ' < > ? \ | { } [ ] ,
The text was updated successfully, but these errors were encountered:
856537f
Fix odin-lang#3603
21c43c0
No branches or pull requests
Context
There is a range of special characters that the compiler just does not error on and exits when parsing
#load()
Expected Behavior
The compiler should have returned
Current Behavior
Exits, returns nothing.
Steps to Reproduce
# $ % ^ * ( ) = ; : ' < > ? \ | { } [ ] ,
The text was updated successfully, but these errors were encountered: