Skip to content

Instantly share code, notes, and snippets.

@MasazI
Created May 19, 2015 15:14
Show Gist options
  • Select an option

  • Save MasazI/127903230b452aa91959 to your computer and use it in GitHub Desktop.

Select an option

Save MasazI/127903230b452aa91959 to your computer and use it in GitHub Desktop.
macro.cpp
//
// macro.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/20.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <typeinfo>
#include <cxxabi.h>
#define CMACRO(x) (void)(x)
int main(int argc, const char * argv[]) {
std::cout << "con1.data = " << abi::__cxa_demangle(typeid(CMACRO(12)).name(), 0, 0, 0) << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment