Skip to content

Commit

Permalink
Merge pull request #746 from bettio/fix-hello-world
Browse files Browse the repository at this point in the history
Fix hello_world and "Install and smoke test"

Explicitly return ok, so atomvm exits with success.

For reference:
```c
114     int status;
115     if (ret_value == OK_ATOM) {
116         status = EXIT_SUCCESS;
117     } else {
118         status = EXIT_FAILURE;
119     }
```

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Aug 11, 2023
2 parents ae5a475 + d260911 commit f585c5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/erlang/hello_world.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
-export([start/0]).

start() ->
erlang:display(hello_world).
erlang:display(hello_world),
ok.

0 comments on commit f585c5b

Please sign in to comment.