comparison dwt/internal/accessibility/gtk/ATK.d @ 324:174bd206cf10

rename version LLVMDC to LDC
author Frank Benoit <benoit@tionex.de>
date Tue, 07 Oct 2008 17:50:07 +0200
parents ffb904674b52
children
comparison
equal deleted inserted replaced
323:964972e7fa4d 324:174bd206cf10
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. 2 * Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved.
3 * The contents of this file are made available under the terms 3 * The contents of this file are made available under the terms
4 * of the GNU Lesser General Public License (LGPL) Version 2.1 that 4 * of the GNU Lesser General Public License (LGPL) Version 2.1 that
5 * accompanies this distribution (lgpl-v21.txt). The LGPL is also 5 * accompanies this distribution (lgpl-v21.txt). The LGPL is also
6 * available at http://www.gnu.org/licenses/lgpl.html. If the version 6 * available at http://www.gnu.org/licenses/lgpl.html. If the version
61 61
62 62
63 template NameOfFunc(alias f) { 63 template NameOfFunc(alias f) {
64 // Note: highly dependent on the .stringof formatting 64 // Note: highly dependent on the .stringof formatting
65 // the value begins with "& " which is why the first two chars are cut off 65 // the value begins with "& " which is why the first two chars are cut off
66 version( LLVMDC ){ 66 version( LDC ){
67 // stringof in LLVMDC is "&foobar" 67 // stringof in LLVMDC is "&foobar"
68 const char[] NameOfFunc = (&f).stringof[1 .. $]; 68 const char[] NameOfFunc = (&f).stringof[1 .. $];
69 } 69 }
70 else{ 70 else{
71 // stringof in DMD is "& foobar" 71 // stringof in DMD is "& foobar"