Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
wasm-watermarker
Commits
772a6e38
Commit
772a6e38
authored
Mar 22, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output result
parent
ecc5555d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
kyut.cpp
src/kyut.cpp
+4
-2
No files found.
src/kyut.cpp
View file @
772a6e38
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
try
{
try
{
if
(
argc
!=
3
)
{
if
(
argc
!=
4
)
{
fmt
::
print
(
std
::
cerr
,
fmt
::
print
(
std
::
cerr
,
"WebAssembly digital watermarker.
\n
"
"WebAssembly digital watermarker.
\n
"
"usage: kyut <input file> <watermark>
\n
"
);
"usage: kyut <input file> <watermark>
<output file>
\n
"
);
return
1
;
return
1
;
}
}
...
@@ -19,6 +19,8 @@ int main(int argc, char *argv[]) {
...
@@ -19,6 +19,8 @@ int main(int argc, char *argv[]) {
wasm
::
ModuleReader
{}.
read
(
argv
[
1
],
module
);
wasm
::
ModuleReader
{}.
read
(
argv
[
1
],
module
);
kyut
::
pass
::
embedWatermarkOperandSwapping
(
module
);
kyut
::
pass
::
embedWatermarkOperandSwapping
(
module
);
wasm
::
ModuleWriter
{}.
writeText
(
module
,
argv
[
3
]);
}
catch
(
wasm
::
ParseException
&
e
)
{
}
catch
(
wasm
::
ParseException
&
e
)
{
fmt
::
print
(
std
::
cerr
,
"parse error
\n
"
);
fmt
::
print
(
std
::
cerr
,
"parse error
\n
"
);
e
.
dump
(
std
::
cerr
);
e
.
dump
(
std
::
cerr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment