Update rust_g to 0.5.0+a2 (#12865)

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Werner
2021-12-19 23:22:29 +01:00
committed by GitHub
co-authored by Werner
parent 0549da254f
commit 619ca5ce69
6 changed files with 80 additions and 20 deletions
+6 -6
View File
@@ -26,7 +26,7 @@
The prerequisite for using this is rustg compiled with the udp_shipper feature.
Rustg's rustg_udp_shipper_send function is used to send data.
Rustg's rustg_udp_send function is used to send data.
*/
/**
@@ -37,17 +37,17 @@
*/
/proc/send_udp_data(addr, data)
#ifdef RUST_G
# ifndef rustg_udp_shipper_send
# error rustg_udp_shipper_send macro is not defined for rustg.
# endif // rustg_udp_shipper_send
# ifndef rustg_udp_send
# error rustg_udp_send macro is not defined for rustg.
# endif // rustg_udp_send
if (!addr || !data)
return "Not enough args."
. = rustg_udp_shipper_send(addr, data)
. = rustg_udp_send(addr, data)
if (.)
error("UDP Shipper error: [.]")
error("UDP Sender error: [.]")
#else
return