blob: a40feb673d467356b6f35efd82ce92fa3c49925a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 CEA LIST.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* CEA LIST - initial API and implementation
*******************************************************************************/
package org.eclipse.papyrus.designer.languages.c.codegen.module
import static extension org.eclipse.papyrus.designer.languages.c.codegen.lib.commonScript.genName
import org.eclipse.uml2.uml.NamedElement
class commonModuleScript {
def static genHeadingModule(NamedElement namedElement) '''
#ifndef «(namedElement.genName() as String).toUpperCase()»_C_
#define «(namedElement.genName() as String).toUpperCase()»_C_
'''
def static genEndModule(NamedElement namedElement) '''
#endif /*«(namedElement.genName() as String).toUpperCase()»_C_*/
'''
}