mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00

Differential Revision: https://phabricator.services.mozilla.com/D12163 --HG-- extra : moz-landing-system : lando
12 lines
462 B
Python
12 lines
462 B
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
def add_define(out_file, in_path, expr, num = ''):
|
|
out_file.write('#define %s %s\n' % (expr, num))
|
|
with open(in_path, 'r') as fh:
|
|
out_file.write(fh.read())
|