Skip to content

🎭 Automatic reloader of constants during runtime, featuring type inference. Written in C++11.

License

Notifications You must be signed in to change notification settings

r-lyeh-archived/live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

live

  • Live is an automatic reloader of constants during runtime, featuring type inference. Written in C++11.
  • Live is cross-platform. Builds on Windows/Linux/MacosX. Compiles on g++/clang/msvc.
  • Live is self-contained. No third party dependencies.
  • Live is tiny. Header only.
  • Live is zlib/libpng licensed.

intro

  • On debug, $live(...) constants are watched, parsed, evaluated, cached, and returned back as needed.
  • On release, $live(...) constants are just returned back with no modifications.

sample

#include <iostream>
#include <string>
#include "live.hpp"

int main() {
    // feel free to modify following constants during runtime
    for(;;) {
        int number = $live(-1234);
        double real = $live(3.14159);
        const char *string = $live("hello world");
        std::string string2 = $live("abcdef");
        std::cout << number << ',' << real << ',' << string << ',' << string2 << std::endl;
    }
}

cons

  • Live requires strict ordering of $live() elements during runtime.

About

🎭 Automatic reloader of constants during runtime, featuring type inference. Written in C++11.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages