mirror of
https://github.com/guilhermewerner/rust-ffi
synced 2025-06-15 21:34:19 +00:00
Update Crate and Examples
This commit is contained in:
33
Source/Library.h
Normal file
33
Source/Library.h
Normal file
@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace Library
|
||||
{
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
float Add(float num1, float num2);
|
||||
|
||||
float Divide(float num1, float num2);
|
||||
|
||||
float Multiply(float num1, float num2);
|
||||
|
||||
float Subtract(float num1, float num2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
@ -1,5 +1,3 @@
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
#[no_mangle]
|
||||
|
Reference in New Issue
Block a user