summaryrefslogtreecommitdiff
path: root/icespider/unittests/test-api.ice
diff options
context:
space:
mode:
Diffstat (limited to 'icespider/unittests/test-api.ice')
-rw-r--r--icespider/unittests/test-api.ice4
1 files changed, 3 insertions, 1 deletions
diff --git a/icespider/unittests/test-api.ice b/icespider/unittests/test-api.ice
index c89e0fc..f92a5cd 100644
--- a/icespider/unittests/test-api.ice
+++ b/icespider/unittests/test-api.ice
@@ -1,3 +1,5 @@
+#define stringview ["cpp:view-type:std::string_view"] string
+[["cpp:include:string_view_support.h"]]
module TestIceSpider {
class SomeModel {
string value;
@@ -24,7 +26,7 @@ module TestIceSpider {
string simplei(int i);
SomeModel index();
SomeModel withParams(string s, int i) throws Ex;
- void returnNothing(string s) throws Ex;
+ void returnNothing(stringview s) throws Ex;
void complexParam(optional(0) string s, SomeModel m);
};
interface DummyPlugin {