summaryrefslogtreecommitdiff
path: root/c++-mode/dynamic_casting
diff options
context:
space:
mode:
Diffstat (limited to 'c++-mode/dynamic_casting')
-rw-r--r--c++-mode/dynamic_casting5
1 files changed, 5 insertions, 0 deletions
diff --git a/c++-mode/dynamic_casting b/c++-mode/dynamic_casting
new file mode 100644
index 0000000..f09c171
--- /dev/null
+++ b/c++-mode/dynamic_casting
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: dynamic_casting
+# key: cast
+# --
+check_and_cast<${1:Type} *>(${2:msg}); \ No newline at end of file