7-15 855 views
阅读全文 0
请注意,逸凡并不支持低于IE8的浏览器,为了获得最佳效果,请下载最新的浏览器,推荐下载 Chrome浏览器
Getting Source code
Install depot_tools
Clone the depot_tools repository:
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Add depot_tools to the end of your PATH (you will probably want to put this in your ~/.bashrc o...
7-12 6,042 views
Getting Source code
Install depot_tools
Clone the depot_tools repository:
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools...
void egl_demo()
{
EGLDisplay display = eglGetDisplay (EGL_DEFAULT_DISPLAY);
eglInitialize(display , 0, 0);
EGLConfig config;
eglChooseConfig(display , attribs, & config, 1, &numConfigs );
EGLSurface surface = eglCreateWi...
6-09 1,337 views
void egl_demo()
{
EGLDisplay display = eglGetDisplay (EGL_DEFAULT_DISPLAY);
eglInitialize(display , 0, 0);
EGLConfig config;
eglChoo...
golang init函数
init函数有一下几点特性:
init函数在main执行之前,自动被调用执行的,不能显示调用
每个包的init函数在包被引用时,自动被调用
每个包可以有多个init函数
同一个文件中可定义多个init()函数
相当于Java的静态函数 static{}
package main
import (...
5-30 2,309 views
阅读全文 11
https://github.com/golang/go/wiki/cgo
Introduction
First, http://golang.org/cmd/cgo is the primary cgo documentation.
There is also a good introduction article at http://golang.org/doc/articles/c_go_cgo.html.
The basics
If a Go source file import...
5-13 1,948 views
https://github.com/golang/go/wiki/cgo
Introduction
First, http://golang.org/cmd/cgo is the primary cgo documentation.
There is also a good introdu...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
int main(void)
{
int result = -1;
int fd[2];
int nbytes;
pid_t pid;
char hello[] = "Hello Wor...
5-06 1,091 views
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
int main(void...
macos Delve could not launch process: EOF
I have a workaround.
sudo rm -rf /Library/Developer/CommandLineTools
Go to https://developer.apple.com/download/more/ and download Command Line Tools (macos 10.13) for XCode 9.2.
This will restore debuggi...
4-06 1,132 views
macos Delve could not launch process: EOF
I have a workaround.
sudo rm -rf /Library/Developer/CommandLineTools
Go to https://developer.apple.com/d...