[fractal] Backend: Add put! macro
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Backend: Add put! macro
- Date: Tue, 8 Jan 2019 14:36:42 +0000 (UTC)
commit ef6f0275c146bba4c8b45ce15cc2a47cf10b79b7
Author: Alejandro DomÃnguez <adomu net-c com>
Date: Sat Dec 29 21:01:59 2018 +0100
Backend: Add put! macro
fractal-matrix-api/src/util.rs | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/fractal-matrix-api/src/util.rs b/fractal-matrix-api/src/util.rs
index 7679cc62..0ef1231a 100644
--- a/fractal-matrix-api/src/util.rs
+++ b/fractal-matrix-api/src/util.rs
@@ -113,6 +113,13 @@ macro_rules! post {
};
}
+#[macro_export]
+macro_rules! put {
+ ($($args: expr),+) => {
+ query!("put", $($args),+)
+ };
+}
+
#[macro_export]
macro_rules! query {
($method: expr, $url: expr, $attrs: expr, $okcb: expr, $errcb: expr, $timeout: expr) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]