aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary')
-rw-r--r--Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary
new file mode 100644
index 0000000..3e069cc
--- /dev/null
+++ b/Emacs/.config/emacs/.config/yasnippet/snippets/cc-mode/ternary
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: ternary
+# key: ?
+# uuid: ?
+# --
+(${1:cond}) ? ${2:then} : ${3:else}; \ No newline at end of file