Skip to content

Instantly share code, notes, and snippets.

@jonathan-beard
Last active October 9, 2015 01:27
Show Gist options
  • Save jonathan-beard/25fc0a6d48b863fc0ab1 to your computer and use it in GitHub Desktop.
Save jonathan-beard/25fc0a6d48b863fc0ab1 to your computer and use it in GitHub Desktop.
/* vim: set shiftwidth=3 set tabstop=3 set number set ai set aw set expandtab : */
/* you need to have 'set modeline' within your vimrc for the above to work */
#include <cstdint>
#include <iostream>
#include <cstdlib>
struct foo <% std::int32_t k; %>;
static std::int32_t count = 0;
bool operator not_eq ( foo a, int b )
<%
std::cerr << "foo: " << count++ << "\n";
return( true );
%>
std::int32_t
main( std::int32_t argc, char *argv<::> )
<%
foo f;
__attribute__(( __unused__ )) auto a( f != 5 );
__attribute__(( __unused__ )) auto b( f not_eq 5 );
return( EXIT_SUCCESS );
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment