testapp.c 363 B

12345678910111213141516171819
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <string.h>
  8. #include <stdint.h>
  9. int32_t
  10. add_native(int32_t n);
  11. int32_t
  12. calculate(int32_t n)
  13. {
  14. printf("calling into WASM function: %s\n", __FUNCTION__);
  15. return add_native(n);
  16. }