2011-02-15 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / libgo / runtime / go-typestring.c
blobdcbbc6575dcba0c54261d08906a42a321c048afa
1 /* go-typestring.c -- the runtime.typestring function.
3 Copyright 2010 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
7 #include "interface.h"
8 #include "go-type.h"
9 #include "go-string.h"
11 struct __go_string typestring(struct __go_empty_interface)
12 asm ("libgo_runtime.runtime.typestring");
14 struct __go_string
15 typestring (struct __go_empty_interface e)
17 return *e.__type_descriptor->__reflection;