{"repo":"fungos/cr","free":true,"listed":false,"github":"https://github.com/fungos/cr","clone":"git clone https://github.com/fungos/cr.git","description":"cr.h: A Simple C Hot Reload Header-only Library","language":"C++","stars":1796,"topics":["gamedev","tool","hot-reload","gamedev-tool","live-coding","linux","osx","windows","c","single-header"],"license":"MIT","category":"game-templates","readme_excerpt":"/ cr.h A single file header-only live reload solution for C, written in C++: - simple public API, 3 functions to use only (and another to export); - works and tested on Linux, MacOSX and Windows; - automatic crash protection; - automatic static state transfer; - based on dynamic reloadable binary (.so/.dylib/.dll); - support multiple plugins; - MIT licensed; NOTE: The only file that matters in this repository is cr.h . This file contains the documentation in markdown, the license, the implementation and the public api. All other files in this repository are supporting files and can be safely ignored. Building cr - Using vcpkg You can download and install cr using the vcpkg dependency manager: git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install ./vcpkg install cr The cr port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository. Example A (thin) host application executable will make use of cr to manage live-reloading of the real application in the form of dynamic loadable binary, a host would be something like: While the guest (real application), would be like: Changelog 2025-03-30 - Removed FIPS and moved to pure CMake. - As a result, cr.h has been moved into the cr directory. - Using cr as a cmake dependency ( target link libraries( PRIVATE cr) ) will expose the cr.h header file to the target. 2020-04-1","default_branch":null,"files":null,"tree":[],"storefront":"/r/fungos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fungos/cr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}