Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoam authored and Hugo Amiard committed Nov 21, 2023
1 parent a58135e commit c610053
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/two/infra.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include <two/type.h>



Expand Down Expand Up @@ -151,7 +150,8 @@ namespace two
#define TWO_INFRA_EXPORT TWO_IMPORT
#endif

#ifdef USE_STLnamespace stl
#ifdef USE_STL
namespace stl
{
template <class T> struct span;
template <class T, size_t Size> struct array;
Expand Down
18 changes: 12 additions & 6 deletions scripts/toolchain/cpp20.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- two toolchain
-- cpp20 modules

if not cxxmodule then
cxxmodule = function(m)
if not cxxmodules then
cxxmodules = function(m)
end
end

Expand All @@ -22,10 +22,16 @@ function modules(m)
if _ACTION == "vs2017"
or _ACTION == "vs2019"
or _ACTION == "vs2022" then
files {
--path.join(m.path, m.dotname .. ".ixx"),
path.join(m.path, m.dotname2 .. ".ixx"),
}
if not m.nomodule then
files {
--path.join(m.path, m.dotname .. ".ixx"),
path.join(m.path, m.dotname2 .. ".ixx"),
}

buildoptions {
"/wd5244",
}
end
else
if not m.nomodule then
local cxxmodule = path.join(m.path, m.dotname2 .. ".cxxm")
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Edit/TypeIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ namespace two

namespace ui
{
TWO_UI_EXPORT bool filter(const string& filter, const string& value);
export_ TWO_UI_EXPORT bool filter(const string& filter, const string& value);

export_ TWO_UI_EXPORT func_ TextEdit& text_box(Widget& parent, Style& style, string& text, bool editor = false, size_t lines = 1, const string& allowed_chars = "");
export_ TWO_UI_EXPORT func_ TextEdit& type_in(Widget& parent, string& text, size_t lines = 1, const string& allowed_chars = "");
Expand Down

0 comments on commit c610053

Please sign in to comment.