File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ cmake_minimum_required(VERSION 4.0.0)
77# This must be enabled before C++ language support.
88set (CMAKE_EXPERIMENTAL_CXX_IMPORT_STD "d0edc3af-4c50-42ea-a356-e2862fe7a444" )
99set (CMAKE_CXX_MODULE_STD ON )
10+ set (CMAKE_CXX_EXTENSIONS OFF )
1011
1112project (cpp-essence C CXX )
1213
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module;
2727export module essence.basic:abi.memory;
2828import std;
2929
30- export extern " C " {
30+ export {
3131 ES_API (CPPESSENCE) void * es_alloc (std::size_t size) noexcept ;
3232 ES_API (CPPESSENCE) void * es_aligned_alloc (std::size_t size, std::size_t alignment) noexcept ;
3333 ES_API (CPPESSENCE) void es_dealloc (void * ptr, std::size_t size) noexcept ;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ namespace essence {
173173#else
174174 if (Dl_info info{}; dladdr (address, &info)) {
175175 if (std::filesystem::path path{info.dli_fname }; path.is_relative ()) {
176- return abi::to_abi_string (get_module_full_path (path.string ()).general_string ());
176+ return abi::to_abi_string (get_module_full_path (path.string ()).generic_string ());
177177 }
178178
179179 return info.dli_fname ;
Original file line number Diff line number Diff line change 2121 */
2222
2323module essence.io;
24- import essence.basic;
2524import std;
2625
2726namespace essence ::io {
Original file line number Diff line number Diff line change 2121 */
2222
2323module essence.basic;
24+ import std;
2425
2526namespace essence {
2627 abi::string to_lower (std::string_view str) {
You can’t perform that action at this time.
0 commit comments