Flutter Engine
The Flutter Engine
third_party
skia
experimental
rust_cxx
main.cpp
Go to the documentation of this file.
1
// Copyright 2023 Google LLC
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4
// namespace hype_train
5
#include "experimental/rust_cxx/gen/hype-bridge.rs.h"
6
7
#include <
stdio.h
>
8
#include <string>
9
10
11
int
main
(
int
argc,
char
**
argv
) {
12
printf
(
"Hello C++\n"
);
13
14
std::string words =
"it works"
;
15
16
hype_train::HypeOutput
result
= hype_train::hypeify(words, 3);
17
18
printf
(
"%s\n"
,
result
.output.c_str());
19
printf
(
"new len: %lu\n"
,
result
.new_len);
20
21
return
0;
22
}
main
int main(int argc, char **argv)
Definition:
main.cpp:8
result
GAsyncResult * result
Definition:
fl_text_input_plugin.cc:106
argv
char ** argv
Definition:
library.h:9
SkSL::String::printf
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1
Definition:
SkSLString.cpp:83
stdio.h
Generated on Sun Jun 23 2024 21:55:57 for Flutter Engine by
1.9.4