Skip to content

Commit d746496

Browse files
committed
generic_string()
1 parent 299e704 commit d746496

5 files changed

Lines changed: 4 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cmake_minimum_required(VERSION 4.0.0)
77
# This must be enabled before C++ language support.
88
set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD "d0edc3af-4c50-42ea-a356-e2862fe7a444")
99
set(CMAKE_CXX_MODULE_STD ON)
10+
set(CMAKE_CXX_EXTENSIONS OFF)
1011

1112
project(cpp-essence C CXX)
1213

src/abi/memory.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module;
2727
export module essence.basic:abi.memory;
2828
import 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;

src/environment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/io/native_fs_operator.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
*/
2222

2323
module essence.io;
24-
import essence.basic;
2524
import std;
2625

2726
namespace essence::io {

src/string.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222

2323
module essence.basic;
24+
import std;
2425

2526
namespace essence {
2627
abi::string to_lower(std::string_view str) {

0 commit comments

Comments
 (0)