Skip to content

Instantly share code, notes, and snippets.

@autosquid
Created March 16, 2018 15:47
Show Gist options
  • Select an option

  • Save autosquid/f61c141e237612cc84b76b5493e0d20d to your computer and use it in GitHub Desktop.

Select an option

Save autosquid/f61c141e237612cc84b76b5493e0d20d to your computer and use it in GitHub Desktop.

Revisions

  1. autosquid created this gist Mar 16, 2018.
    7 changes: 7 additions & 0 deletions google-once
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #name : #ifndef XXX; #define XXX; #endif
    # key: once
    # --
    #ifndef ${1: `(upcase (subst-char-in-string ?. ?_ (subst-char-in-string ?/ ?_ (file-relative-name buffer-file-name (projectile-project-root)))))`_}
    #define $1
    $0
    #endif // $1