an Entity in Data Space: 134.155.108.49:8890
Placing the following snippet in your vimrc file, makes Vim insert these preprocessor gates automatically, when a new header file is created: function! s:insert_gates() let gatename = substitute(toupper(expand("%:t")), "\\.", "_", "g") execute "normal! i#ifndef " . gatename execute "normal! o#define " . gatename . " " execute "normal! Go#endif /* " . gatename . " */" normal! kk endfunction autocmd BufNewFile *.{h,hpp} call insert_gates()
Identifier (URI) | Rank |
---|---|
dbkwik:resource/gC25N4W3k4rV23iHXedUoQ== | 5.88129e-14 |