From the video description:

Stop recompiling your C code just to change a number. adjust.h is a single-header library that lets you edit variables while your program is running - no rebuilds needed. Just include the header, mark your variables, and watch them update live as you edit your source file. In this video, I’ll show you how to set it up and demonstrate why this simple tool can save you time.

Works with any C99 compiler and integrates perfectly with Raylib, ImGui, and other popular libraries. Whether you’re tweaking game physics, adjusting graphics parameters, or fine-tuning algorithms, adjust.h will make your life simpler. Zero dependencies, minimal setup, maximum productivity.

  • xan1242@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    4 days ago

    From a glance, this is just a value parser that exports them by symbols and allows you to edit the static values from a file neatly.

    I don’t know how practical this is yet since I haven’t seen the video, but in order for it to be more practical it needs to be easier to implement and use than other methods to accomplish tweakable values for debugging.

    There are many already:

    • parsing a config/text file in runtime
    • parsing commandline args
    • parsing environment variables
    • using a debugger and a memory watch
    • using external tools that can edit memory

    Now, not all methods are available on all platforms, but, it needs to be better than any of these methods in some way for it to have any point in using it.

    Game devs often have their own frameworks that can communicate with the game via network to tweak exposed values anyway for realtime debugging. Adjust.h from what I can see requires the program to be reset on each iteration.

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      Adjust.h from what I can see requires the program to be reset on each iteration.

      And here’s the catch…
      Let’s see if it’s somehow better than just a config file, which I use for such a case.